package com.easy.service;

import com.easy.bean.Order;
import com.easy.bean.OrderDetail;
import com.easy.bean.User;
import com.easy.util.Page;

import java.util.List;

public interface OrderDetailService {

    OrderDetail add(OrderDetail orderDetail);
    int del(Integer id);
    int finishdel(String orderId);
    OrderDetail edit(OrderDetail orderDetail);
    OrderDetail finishEdit(OrderDetail orderDetail);
    OrderDetail one(Integer id);

    List<OrderDetail> all(String realName);

    int cancel(Integer id);

    //未支付订单分页
    void page(Page page, OrderDetail orderDetail,String token);
    //已完成订单分页
    void commitPage(Page page, OrderDetail orderDetail,String token);
    //所有订单分页
    void finishPage(Page page, OrderDetail orderDetail);

    //提交订单
    String commit(Integer id);
}
